package model;

/**
 * Armazena informações sobre o corpo da variável.
 * 
 * @author Alen
 * 
 */
public class Variable extends STContent {
    private VarType primitiveType;
    private String complexType;

    public Variable(STContent content, VarType type) {
	super(content.lexeme, content.scope, IDType.VAR);
	this.primitiveType = type;
    }

    public Variable(STContent content, VarType type, String complexType) {
	super(content.lexeme, content.scope, IDType.VAR);
	this.primitiveType = type;
	this.complexType = complexType;
    }

    public VarType getType() {
	return primitiveType;
    }

    public void setType(VarType type) {
	this.primitiveType = type;
    }

    public String getComplexType() {
	return complexType;
    }
}
